package com.rhb.af.dao;

import java.io.Serializable;
import java.util.List;

import com.rhb.af.bean.BaseQuery;

public interface GeneralDAO {
	public void save(Object obj);
	public void create(Object obj);
	public void update(Object obj);
	public void delete(Object obj);
	
	public Object findByPK(Class clazz,Serializable pk);
	
	public List<Object> findByQuery(BaseQuery query);
	public int countByQuery(BaseQuery query);
	
	public List<Object[]> findBySql(String sql, int start, int count);
}